package com.jeesite.modules.rt.dto;

import com.jeesite.common.utils.excel.annotation.ExcelField;
import com.jeesite.common.utils.excel.annotation.ExcelFields;
import lombok.Data;

import java.util.Date;

@Data
public class DeviceShouyiDto {

    @ExcelFields({
        @ExcelField(title="SN", attrName="sn", align= ExcelField.Align.CENTER, sort=10),
        @ExcelField(title="收益（元）", attrName="amount", align= ExcelField.Align.RIGHT, sort=20),
        @ExcelField(title="渠道", attrName="channelType",dictType="rt_channel_type", align= ExcelField.Align.CENTER, sort=25),
        @ExcelField(title="在线状态", attrName="online",dictType="rt_online_code", align= ExcelField.Align.CENTER, sort=30),
        @ExcelField(title="时间", attrName="workDate",dataFormat = "yyyy-MM-dd", align= ExcelField.Align.CENTER, sort=40),
        @ExcelField(title="报警", attrName="errorStr", align= ExcelField.Align.CENTER, sort=50),
    })

    private String sn;

    private Double amount;		// 收益

    private String online;		// 在线状态

    private Date workDate;

    private String channelType;

    private String errorStr;

}
